php get latest file in directory

38

$files = scandir('data', SCANDIR_SORT_DESCENDING);
$newest_file = $files[0];

Comments

Submit
0 Comments